Skip to content

chore(repo): version packages#282

Merged
HugoRCD merged 1 commit intomainfrom
changeset-release/main
Apr 15, 2026
Merged

chore(repo): version packages#282
HugoRCD merged 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Apr 15, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

evlog@2.13.0

Minor Changes

  • #280 fa0ee26 Thanks @HugoRCD! - Add evlog/better-auth integration for automatic user identification from Better Auth sessions.

    New exports (evlog/better-auth):

    • identifyUser(log, session, options?) — sets userId, user, and session fields on a wide event. Returns true if identified
    • createAuthMiddleware(auth, options?) — framework-agnostic (log, headers, path?) => Promise<boolean> with route filtering, timing capture, and lifecycle hooks
    • createAuthIdentifier(auth, options?) — Nitro request hook factory for standalone Nitro apps
    • maskEmail(email) — utility to mask emails for safe logging (h***@example.com)
    • BetterAuthInstance — reusable type for the auth parameter

    Features:

    • include/exclude route pattern filtering on createAuthMiddleware
    • extend callback for Better Auth plugin fields (organizations, roles, etc.)
    • auth.resolvedIn timing in every wide event
    • auth.identified boolean in every wide event
    • session.userAgent captured by default
    • onIdentify/onAnonymous lifecycle hooks
    • console.warn in development when session resolution fails
  • #284 861f6d2 Thanks @HugoRCD! - log.set() concatenates arrays when merging context for the same key. For example, set({ items: [1, 2] }) followed by set({ items: [3] }) yields { items: [1, 2, 3] } instead of replacing with [3]. Plain objects are still deep-merged recursively; if either the existing or incoming value is not an array, the new value replaces the old one.

    Breaking change: Call sites that relied on the last set overwriting an array now accumulate elements. To replace a value at emit time, use emit({ ... }) overrides or a different field name.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evlog-docs Ready Ready Preview, Comment, Open in v0 Apr 15, 2026 9:19pm
just-use-evlog Ready Ready Preview, Comment Apr 15, 2026 9:19pm

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 361fa39 to 6768605 Compare April 15, 2026 21:16
@HugoRCD HugoRCD merged commit e3107f9 into main Apr 15, 2026
5 checks passed
@HugoRCD HugoRCD deleted the changeset-release/main branch April 15, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant